import request from '@/utils/request'

// 查询医案维护列表
export function listIntroduce(query) {
  return request({
    url: '/zhongyao/introduce/list',
    method: 'get',
    params: query
  })
}

// 查询医案维护详细
export function getIntroduce(key) {
  return request({
    url: '/zhongyao/introduce/' + key,
    method: 'get'
  })
}

// 新增医案维护
export function addIntroduce(data) {
  return request({
    url: '/zhongyao/introduce',
    method: 'post',
    data: data
  })
}

// 修改医案维护
export function updateIntroduce(data) {
  return request({
    url: '/zhongyao/introduce',
    method: 'put',
    data: data
  })
}

// 删除医案维护
export function delIntroduce(key) {
  return request({
    url: '/zhongyao/introduce/' + key,
    method: 'delete'
  })
}
